package code._10string._05stringbuffer.demo;

public class Main {
    public static void main(String[] args) {
        String str="";
        int sum=0;
        StringBuffer sb=new StringBuffer();
        //
        long start=System.currentTimeMillis();
        for (int i = 0; i < 10000000; i++) {
            sb.append("a");
        }
        long end=System.currentTimeMillis();
        System.out.println("(end-start) = " + (end - start));
    }
}
